package com.ketangpai.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ketangpai.admin.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserDao extends BaseMapper<User> {

    @Select("select * from user where account=#{account}")
    User getByAccount(String account);

    @Select("select * from user where account=#{account} and password=#{password}")
    User getByAccountAndPwd(String account, String password);

}
